.login {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;

  // 背景装饰
  &__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    .bg-circle {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      animation: float 6s ease-in-out infinite;

      &.bg-circle-1 {
        width: 200rpx;
        height: 200rpx;
        top: 10%;
        right: -50rpx;
        animation-delay: 0s;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
      }

      &.bg-circle-2 {
        width: 150rpx;
        height: 150rpx;
        top: 60%;
        left: -30rpx;
        animation-delay: 2s;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
      }

      &.bg-circle-3 {
        width: 100rpx;
        height: 100rpx;
        top: 80%;
        right: 20%;
        animation-delay: 4s;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
      }
    }

    // 星空背景
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
      background-repeat: repeat;
      background-size: 200px 100px;
      animation: twinkle 4s ease-in-out infinite;
    }
  }

  // 主容器
  &__container {
    position: relative;
    z-index: 2;
    padding: 60rpx 40rpx;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
  }

  // 头部品牌区域
  &__header {
    text-align: center;
    margin-bottom: 80rpx;

    .logo-container {
      margin-bottom: 32rpx;

      .logo {
        width: 120rpx;
        height: 120rpx;
        border-radius: 60rpx;
        border: 4rpx solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        
        &:hover {
          transform: scale(1.05);
          box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.3);
        }
      }
    }

    .brand-title {
      font-size: 48rpx;
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 16rpx;
      text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
      background: linear-gradient(45deg, #fff, #f0f8ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .brand-subtitle {
      font-size: 28rpx;
      color: rgba(255, 255, 255, 0.9);
      line-height: 40rpx;
      text-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.3);
    }
  }

  // 功能特色
  &__features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 80rpx;
    padding: 40rpx 20rpx;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24rpx;
    backdrop-filter: blur(15rpx);
    border: 1rpx solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);

    .feature-item {
      text-align: center;
      flex: 1;
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-4rpx);
      }

      .feature-icon {
        font-size: 48rpx;
        margin-bottom: 16rpx;
        filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.2));
      }

      .feature-text {
        font-size: 24rpx;
        color: rgba(255, 255, 255, 0.95);
        line-height: 32rpx;
        font-weight: 500;
      }
    }
  }

  // 登录内容区域
  &__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  // 登录成功状态
  &__success {
    text-align: center;
    padding: 60rpx 0;

    .success-icon {
      font-size: 80rpx;
      margin-bottom: 32rpx;
      color: #FFD700;
      text-shadow: 0 0 20rpx rgba(255, 215, 0, 0.8);
      animation: starGlow 2s ease-in-out infinite;
    }

    .user-info {
      .user-avatar {
        width: 120rpx;
        height: 120rpx;
        border-radius: 60rpx;
        border: 4rpx solid rgba(255, 255, 255, 0.4);
        margin-bottom: 24rpx;
        box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        
        &:hover {
          transform: scale(1.05);
          box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.3);
        }
      }

      .user-name {
        font-size: 32rpx;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 16rpx;
        text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
      }

      .login-status {
        font-size: 28rpx;
        color: rgba(255, 255, 255, 0.9);
      }
    }
  }

  // 登录表单
  &__form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  &__welcome {
    text-align: center;
    margin-bottom: 40rpx;

    .welcome-icon {
      font-size: 64rpx;
      margin-bottom: 24rpx;
      animation: pulse 2s ease-in-out infinite;
      filter: drop-shadow(0 2rpx 8rpx rgba(0, 0, 0, 0.2));
    }

    .welcome-text {
      font-size: 32rpx;
      font-weight: 600;
      color: #FFFFFF;
      text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
      background: linear-gradient(45deg, #fff, #f0f8ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
  }

  &__tips {
    color: rgba(255, 255, 255, 0.9);
    font-size: 26rpx;
    line-height: 40rpx;
    text-align: center;
    margin-bottom: 60rpx;
    padding: 0 40rpx;
    font-weight: 400;
  }

  &__button {
    width: 100%;
    margin-bottom: 40rpx;

    .wechat-login-btn {
      height: 96rpx;
      border-radius: 48rpx;
      font-size: 32rpx;
      font-weight: 600;
      background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
      border: none;
      box-shadow: 0 8rpx 24rpx rgba(37, 211, 102, 0.4);
      transition: all 0.3s ease;
      color: #FFFFFF;

      &:active {
        transform: translateY(2rpx);
        box-shadow: 0 4rpx 12rpx rgba(37, 211, 102, 0.5);
      }
      
      &:hover {
        background: linear-gradient(135deg, #20C997 0%, #0F8A7A 100%);
        box-shadow: 0 12rpx 32rpx rgba(37, 211, 102, 0.5);
      }
    }
  }

  &__agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24rpx;
    color: rgba(255, 255, 255, 0.8);
    line-height: 40rpx;
    text-align: center;
    flex-wrap: wrap;

    text {
      margin: 0 4rpx;
    }

    .t-link {
      color: rgba(255, 255, 255, 1);
      text-decoration: underline;
      font-weight: 500;
      
      &:hover {
        color: #FFD700;
      }
    }
  }

  // 底部信息
  &__footer {
    text-align: center;
    margin-top: 60rpx;

    .stats {
      font-size: 26rpx;
      color: rgba(255, 255, 255, 0.9);

      .highlight {
        color: #FFD700;
        font-weight: 600;
        text-shadow: 0 0 8rpx rgba(255, 215, 0, 0.5);
      }
    }
  }
}

// 动画效果
@keyframes float {
  0%, 100% {
    transform: translateY(0rpx);
  }
  50% {
    transform: translateY(-20rpx);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30rpx, 0);
  }
  70% {
    transform: translate3d(0, -15rpx, 0);
  }
  90% {
    transform: translate3d(0, -4rpx, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes starGlow {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 20rpx rgba(255, 215, 0, 0.8);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 30rpx rgba(255, 215, 0, 1);
  }
}
